//
//  Array+Extension.swift
//  Advance
//
//  Created by 松松 on 2018/8/14.
//  Copyright © 2018年 整物搭链. All rights reserved.
//

import Foundation

extension Array{
    mutating public func shuffle(){
        for i in 0..<(count-1){
            let j = Int(arc4random_uniform(UInt32(count-i)))+i
            swapAt(i, j)
        }
    }
}
